﻿using Downloader.Domain;

namespace Downloader.Web.Controllers.ViewModels
{
    public sealed class FriendlyLinkViewModel
    {
        public FriendlyLinkViewModel()
        {
            
        }
        public FriendlyLinkViewModel(FriendlyLink model)
        {
            this.Id = model.Id;
            this.Name = model.Name;
            this.Url = model.Url;
            this.LogImg = model.LogImg;
            this.Sequence = model.Sequence;

        }
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// Log图标
        /// </summary>
        public string LogImg { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sequence { get; set; }
        /// <summary>
        /// 显示状态
        /// </summary>
        public bool IsShow { get; set; }
    }
}